cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR)

cmake_policy(SET CMP0009 NEW)

project(crossroad)

set(CMAKE_THREAD_PREFER_PTHREAD 1)
find_package(Threads)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

include(Dependencies)
include(ProjectTemplate)

if(BUILD_DEP_TEST)
    add_subdirectory(dep-test)
endif()

add_subdirectory(src)
